// Copyright (c) 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

/**
*@describe:
*@author wfl19/Kristas
*@date 2021/04/14
 */

package banners

import (
	"fmt"
	. "gitee.com/kristas/booting-go/framework/common/util/console"
	"gitee.com/kristas/booting-go/framework/constant"
	"log"
	"os"
)

var Banners = Drawln(White, fmt.Sprintf("%v", os.Args)) +
	Drawln(Yellow, " ___           _   _              ___  ___") +
	Drawln(Blue, "| _ ) ___  ___| |_(_)_ _  __ _   / __|/ _ \\") +
	Drawln(Green, "| _ \\/ _ \\/ _ \\  _| | ' \\/ _` | | (_ | (_) |") +
	Drawln(Cyan, "|___/\\___/\\___/\\__|_|_||_\\__, |  \\___|\\___/") +
	Drawln(Magenta, "                         |___/    version: %v\n")

func PrintBanners() {
	log.Printf(Banners, constant.Version)
}
